﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="WSCC_GlutenfreeKent.RestaurantsDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2" Width="913px">
            <Columns>
                <asp:BoundField DataField="RestaurantName" HeaderText="RestaurantName" 
                    SortExpression="RestaurantName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Photo" HeaderText="Picture">
                    <ControlStyle Height="200px" Width="200px" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionStringRestaurants %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionStringRestaurants.ProviderName %>" 
            SelectCommand="SELECT [RestaurantName], [Description], [Photo] FROM [Restaurants] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            Width="913px">
            <Columns>
                <asp:BoundField DataField="Comment" HeaderText="Comment" 
                    SortExpression="Comment" />
                <asp:BoundField DataField="UserName" HeaderText="UserName" 
                    SortExpression="UserName" />
                <asp:BoundField DataField="Gluten-free_rating" HeaderText="Rating" 
                    SortExpression="Rating" />
                <asp:BoundField DataField="Food_quality" HeaderText="Food quality" 
                    SortExpression="Food_quality" />
                <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
                <asp:BoundField DataField="Overall_rating" HeaderText="Overall rating" 
                    SortExpression="Overall_rating" />
                <asp:ImageField DataImageUrlField="Photo" HeaderText="Picture">
                    <ControlStyle Height="200px" Width="200px" />
                </asp:ImageField>
                <asp:HyperLinkField DataNavigateUrlFields="Menu" HeaderText="Menu" 
                    Text="Menu" />
            </Columns>
        </asp:GridView>
    </p>
    <p>
        <br />
        <br />
        Add your comment here:</p>
    <p>
        Comment title<asp:TextBox ID="tb_CommentTitle" runat="server"></asp:TextBox>
&nbsp;</p>
    <p>
        Gluten-free rating 
        <asp:RadioButtonList ID="rbl_GFRating" runat="server" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
        </asp:RadioButtonList>
    </p>
    <p>
        Food quality 
        <asp:RadioButtonList ID="rbl_FoodQuality" runat="server" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
        </asp:RadioButtonList>
    </p>
    <p>
        Price bracket  
        <asp:RadioButtonList ID="rbl_PriceBracket" runat="server" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem>£</asp:ListItem>
            <asp:ListItem Value="2">££</asp:ListItem>
            <asp:ListItem Value="3">£££</asp:ListItem>
        </asp:RadioButtonList>
    </p>
    <p>
        Overall rating 
        <asp:RadioButtonList ID="rbl_Rating" runat="server" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
        </asp:RadioButtonList>
    </p>
    <p>
        Photo 
        <asp:FileUpload ID="f_Picture" runat="server" />
    </p>
    <p>
        Menu 
        <asp:FileUpload ID="f_Menu" runat="server" />
    </p>
    <p>
        Your comment<br />
&nbsp;<asp:TextBox ID="tb_Comment" runat="server" Height="84px" TextMode="MultiLine" 
            Width="312px"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="btn_SubmitComment" runat="server" Text="Submit your comment" />
        <br />
    </p>
<p>
        Tag your restaurant</p>
<p>
        <asp:CheckBoxList ID="cbl_restauranttags" runat="server" DataSourceID="TagsDS" 
            DataTextField="Tag" DataValueField="ID" RepeatDirection="Horizontal">
        </asp:CheckBoxList>
        <asp:SqlDataSource ID="TagsDS" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionStringRestaurants %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionStringRestaurants.ProviderName %>" 
            SelectCommand="SELECT * FROM [Tags]"></asp:SqlDataSource>
        <br />
        Add in your own tag(s) here, separate tags using commas:<br />
        <br />
        <asp:TextBox ID="tb_tags" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" Text="Tag this restaurant" />
        <br />
        <br />
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
